TARGET=demo
TARGET_OBJS=main.o
#CROSS_COMPILE?= /home/jake/workspace/openwrt/src/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-
CC=${CROSS_COMPILE}gcc
CXX=${CROSS_COMPILE}g++
INCLUDEPATH=
CFLAGS=${INCLUDEPATH} -D_LINUX_
CXXFLAGS=${INCLUDEPATH}
LDFLAGS= -lrt
INSTALL_DIR=.

.PHONY: all clean install
all:${TARGET}
clean:${TARGET}_clean
install:${TARGET}_install

${TARGET}: ${TARGET_OBJS}
	${CC} -o $@ $^ ${LDFLAGS}
${TARGET}_clean:
	rm -rf ${TARGET_OBJS} ${TARGET}
${TARGET}_install:
	install ${TARGET} ${INSTALL_DIR}

